<?php
//  PULSAR, THE GAME
//  ================================
//  COPYRIGHT(c) 2013 BY KAMIL MRZYGŁÓD
//  CODENOVA.PL

namespace Modules\Validation {
    class Validator {

        /**
         * Check if variable are empty or null
         * @param array $vars
         * @return bool
         */
        public static function CheckIfEmptyOrNull(array $vars) {
            foreach($vars as $var) {
                if(empty($var)) {
                    return true;
                }
            }
            return false;
        }

        /**
         * @param $request
         */
        public static function ValidateRequest(array $request) {
            // Iterate through array to check
            // what we got and what we should have got
            foreach($request as $el) {
                // Validation depends on variable type
                switch(gettype($el)) {
                    case 'switch':
                        // Standard validation for strings

                        break;
                    default:
                        break;
                }
            }
        }
    }
}

 